home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / memsz160.zip / CATALA.CMD < prev    next >
OS/2 REXX Batch file  |  1993-03-03  |  1KB  |  55 lines

  1. /* CATALA.CMD: Instal·lació de MEMSIZE en català */
  2.  
  3. /* Càrregar REXXUTIL */
  4. Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs';
  5. Call SysLoadFuncs
  6.  
  7. Call SysCls
  8. Say 'Instal·lació de MEMSIZE...';
  9. Say '';
  10.  
  11. Say 'Si us plau, escribiu el nom complet del directori on voleu';
  12. Say '  instal·lar el programa MEMSIZE (per defecte és C:\OS2\APPS): ';
  13. Pull Directory
  14. If Directory = "" Then Directory='C:\OS2\APPS'
  15. Result = SysFileTree(Directory, 'Dirs', 'D')
  16. If Dirs.0 = 0 Then Call SysMkDir Directory;
  17.  
  18. Say "Voleu instal·lar-lo de forma que s'executi automàticament a l'arrencar? (S/N)";
  19. Pull YesNo
  20. If YesNo = "S" Then
  21.   Do
  22.   Folder='<WP_START>'
  23.   Say "L'objecte es copiarà a la carpeta Inici.";
  24.   End
  25. Else
  26.   Do
  27.   Folder='<WP_DESKTOP>'
  28.   Say "L'objecte es copiarà a l'escriptori.";
  29.   End
  30.  
  31. Say 'Copiant MEMSIZE al directori ' Directory '...';
  32. Say '';
  33. Language='CATALA'
  34. Copy MEMSIZE.EXE Directory
  35. Copy Language".DLL" Directory"\MEMSIZE.DLL"
  36. Copy Language".HLP" Directory"\MEMSIZE.HLP"
  37.  
  38. Say "Creant l'objecte del programa...";
  39. Say ''; 
  40.  
  41. Type='WPProgram'
  42. Title='Recursos del Sistema'
  43. Parms='MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\MEMSIZE.EXE;STARTUPDIR='Directory';OBJECTID=<MEMSIZE>;NOPRINT=YES'
  44.  
  45. Result=SysCreateObject(Type,Title,Folder,Parms,'ReplaceIfExists');
  46.  
  47. If Result=1 Then 
  48.   Call charout ,"...   L'objecte s'ha creat.  Final"
  49. Else             
  50.   Call charout ,"...   No s'ha pogut crear l'objecte! Estat final=" Result
  51.  
  52. Exit
  53.  
  54. 
  55.